package com.cci.kangdao.dao;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.mybatis.spring.annotation.MapperScan;

/**
 * @author William Du
 * @date 2019/11/8
 */
@MapperScan
public interface AppVersionTDao {

    @Select("select Max(VersionNum) from AppVersion_T where Type = 0")
    String selectMaxIOSVersion();

    /**
     *版本兼容
     * @return
     */
    @Select("select top 1 Version from VersionCompatible_T where Flag = 0 and FunctionType = #{functionType}")
    String getVersionCompatible(@Param("functionType") String functionType);
}
